package com.liwy3.mybaits.mapper;


import com.liwy3.mybaits.domain.SysUser;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

/**
 * Copyright © 元气森林（北京）食品科技集团有限公司. All rights reserved.
 *
 * @Description:
 * @author: Crazy4J
 * @date: 2021年12月29日 16:14
 * @version: V1.0
 */

public interface SysUserMapper {
    @Select("SELECT * FROM sys_user WHERE user_id = #{userId}")
    @Results(value = {
            @Result(property = "merId", column = "mer_id"),
            @Result(property = "merName", column = "mer_name")
    })
    SysUser findById(Long userId);
}
